package cn.iocoder.yudao.module.mzt.controller.app.portal.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "用户app - 分类信息 Response VO")
@Data
public class PortalCategoryRespVO {

    @Schema(description = "顶部", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Category> topCategory;

    @Schema(description = "中间", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Category> middleCategory;

    @Schema(description = "右边", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Category> rightCategory;

    @Data
    public class Category {
        @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3708")
        private Long id;
        @Schema(description = "父ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "126")
        private Long parentId;
        @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
        private String name;
        @Schema(description = "事件", example = "0")
        private Integer event;
        @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
        @DictFormat("mzt_category_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
        private String type;
        @Schema(description = "图标")
        private String icon;
        @Schema(description = "封面图")
        private String cover;
        @Schema(description = "路由地址")
        private String path;
        @Schema(description = "描述", example = "随便")
        private String remark;
        @Schema(description = "级别", example = "1")
        private Integer level;
        @Schema(description = "分类按钮类型", example = "1")
        private String categoryType;
    }
}
